#include "soc_comm.h"
#include "soc_it_hook.h"

void INT0_IRQHandler(void)  interrupt 0
{
	SOC_INT_0_IT_CallBack();
}

void Timer0_IRQHandler(void)  interrupt 1 
{
	SOC_RaiseTimeOutEventFromISR(0);
	MiscIncTickMs();
}

void Timer1_IRQHandler(void)  interrupt 3
{
	SOC_RaiseTimeOutEventFromISR(1);
}

void Timer2_IRQHandler(void)  interrupt 5
{
	SOC_RaiseTimeOutEventFromISR(2);
	
	TF2=0;        //清除中断标志位
	EXF2=0;       //清除溢出标志位
}

void INT1_IRQHandler(void)  interrupt 2
{
	SOC_INT_1_IT_CallBack();
}

void UART0_IRQHandler(void)  interrupt 4 
{
	if(RI)
	{
		SOC_UartRaiseRxByte(0, SBUF);
	}
}
